package com.hd.trans.files.domain;


import androidx.lifecycle.DefaultLifecycleObserver;

import com.hd.trans.files.model.BaseViewModel;

/**
 * Author: yangtianwen
 * Time: 2021/12/14
 * Des:
 */
public abstract class BaseUseCase implements DefaultLifecycleObserver {
    public static final String[] AUDIO_SUFFIXS = {".mp3", ".wav", ".wma", ".amr", ".m4a", ".ogg"};
    public static final String[] DOC_SUFFIXS = {".pdf", ".pptx", ".ppt", ".doc", ".docx"};
    // 管理 Progress
    private BaseViewModel.ProgressUiViewModel mProgressUiViewModel;

    public void addProgressUiViewModel(BaseViewModel.ProgressUiViewModel progressUiViewModel) {
        this.mProgressUiViewModel = progressUiViewModel;
    }

    public BaseViewModel.ProgressUiViewModel getProgressUiViewModel() {
        return mProgressUiViewModel;
    }

    public interface Callback<T> {
        void onValueChange(T t);
    }
}
